package nowcoder.hw.hj101;

public class T {
    public static void main(String[] args) {

        int a[]={1,2,3,4,5,6};
        for (int i = 0; i < 4; i++) {
           print(a[i]);
           print(i);
            System.out.println("-----");
            print(a[i++]);
            print(i++);
            System.out.println("-----");
            print(a[++i]);
            print(++i);
            System.out.println("-----");
        }
    }
    static void print(int a){
        System.out.println(a);
    }
}
